package lxt.service;

import java.util.List;

import lxt.entity.ClientInfo;

public interface ClientService {
	/**
	 * 加载客户信息 
	 * @return
	 */
	public List<ClientInfo> loadClient(String linkman,String address,String clientName,final int offset, final int length)throws Exception;
	/**
	 * 添加客户
	 */
	public boolean addClient(ClientInfo client)throws Exception;
	/**
	 * 根据id查找客户
	 */
	public ClientInfo loadClientById(String clientId)throws Exception;
	/**
	 * 修改客户
	 */
	public boolean updateClient(ClientInfo client)throws Exception;
	/**
	 * 删除客户
	 */
	public boolean deleteClient(String clientId)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllClientCount(String linkman,String address,String clientName)throws Exception;
	/**
	 * 根据客户ID查询货运单数据
	 * @param clientId
	 * @return
	 * @throws Exception
	 */
	public int loadCountOrdersForClient(String clientId) throws Exception;
}
